"""try:
    i = int(input("输入被除数："))
    n = int(input("输入除数："))
    m = i / n
    print("结果：", m)
except BaseException as e:
    print("出错了：", e)
finally:
    print("收尾工作者")
"""

f = None
try:
    f = open(__file__, "r")
    for content in f.readlines():
        print(content, end="")
except BaseException as e:
    print(e)
finally:
    if f != None:
        f.close()
        print("文件已关闭")
    else:
        print("文件句柄不存在，跳过")
